﻿@using SH = EMoney.IStock.Client.Framework.StringHelper;
@using EMoney.IStock.Client.Models.QQ;
@using EMoney.IStock.Client.Framework;
@{
    //高手揭秘
    ViewBag.Title = "rank_gsjm";

    Stocks stocks = (Stocks)ViewBag.Stocks;
    string stocksCode = string.Empty;
    string zxstocksCode = string.Empty;
}

<table id="rank_gsjm_list"  width="100%" border="0" cellspacing="0" cellpadding="0">
    @{
        if(stocks != null)
        {
            string stockcode = string.Empty; 
            List<StocksData> lst = stocks.data.OrderBy(x=>x.stock_id).ToList();
            if(lst !=null && lst.Count > 0)
            {
                int i = 1;
                foreach (StocksData item in lst)
                {
                    zxstocksCode = item.stock_code.Replace("sz", "1");
                    zxstocksCode = zxstocksCode.Replace("sh", "");
                    stockcode = SH.FormatQQStockCode(item.stock_code);                        
                    stocksCode += stockcode + ",";
                    

                    <tr code="@stockcode" ondblclick="GroupToKLine('高手揭秘持仓列表股票','@(stockcode)','@(stockcode)')">
                        <td width="6%" align="center" valign="middle">@(i)</td>
                        <td width="11%" align="center" valign="middle" style="position:relative;">
                            <div code="@zxstocksCode" class="uncover_right_add"><a class="yellow">@(item.stock_name) </a>
                                <span>
                                <a hidefocus="true" onclick="add_zixuan(this,'@(zxstocksCode)')" href="javascript:;">+自选</a>
                                
                                <a hidefocus="true" onclick="GOTO_COMMENT('@(zxstocksCode)')" href="javascript:;">评论</a><em></em>
                                </span>
                            </div>                            
                        </td>
                        <td width="11%" align="center" valign="middle"><span class="blue">@(StringHelper.FormatQQStockCode(item.stock_code))</span></td>
                        <td width="11%" align="center" valign="middle">-</td>
                        <td width="11%" align="center" valign="middle">-</td>
                        <td width="12%" align="center" valign="middle">@(int.Parse(item.stock_count) +int.Parse(item.stock_count_today))</td>
                        <td width="11%" align="center" valign="middle">@(item.stock_cost)</td>
                        <td width="13%" align="center" valign="middle">-</td>
                        <td width="12%" align="center" valign="middle">-</td>
                    </tr>
                    i++;
                }
                
            }else
            {
                <tr><td colspan="9" style="text-align:center;">--无记录--</td></tr>
            }
                
        }   
     }    
</table>
<input type="hidden" id="hidStocks_jsjm" value="@stocksCode" />